//
//  YXVideoActionBar.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/19.
//  播放进度条配置

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class YXVideoActionBar;

@protocol YXVideoActionBarDelegate <NSObject>

@required

/** 播放代理事件 */
- (void)yx_videoActionBar:(YXVideoActionBar *)actionBar clickPlayButton:(UIButton *)playButton;
/** 暂停代理事件 */
- (void)yx_videoActionBar:(YXVideoActionBar *)actionBar clickPauseButton:(UIButton *)pauseButton;
/** 播放进度条改变 */
- (void)yx_videoActionBar:(YXVideoActionBar *)actionBar changeValue:(float)value;

@end

@interface YXVideoActionBar : UIView

@property (nonatomic, weak) id<YXVideoActionBarDelegate> delegate;

- (void)setMaxValue:(float)value;

- (void)setCurrentValue:(float)value;

- (void)pause;

- (void)play;

+ (CGFloat)defaultHeight;

@property (nonatomic, assign, readonly) BOOL isTouchInside;

@end

NS_ASSUME_NONNULL_END
